package com.fk.regimen;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;


public class MeFragment extends Fragment implements OnClickListener{
	
	RelativeLayout rlay_phy;
	
	
	View MeLayout;
	
	public View onCreateView(LayoutInflater inflater,
			 ViewGroup container, Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		MeLayout = inflater.inflate(R.layout.me, container,false);
//		MeLayout = inflater.from(getActivity()).inflate(R.layout.me , null);
		
		initViews();
	
		return MeLayout;
	}

	
	
	private void initViews() {
		rlay_phy = (RelativeLayout) MeLayout.findViewById(R.id.rlay_phy);
		
		//用户点击了"我的体质"一栏，添加监听事件
		rlay_phy.setOnClickListener(this);
		
	}



	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.rlay_phy:
			//我的体质
			Intent phyIntent = new Intent(getActivity(),NonePhyActivity.class);
			
			startActivity(phyIntent);
			
			break;

		default:
			break;
		}
		
	}

}
